package messages

type (
	////发布关注主播
	SubAttentanchorMess struct {
		UserId   int `json:"user_id"`
		Anchorid int `json:"anchorid"`
		RoomId   int `json:"room_id"`
	}
	LiveStream struct {
		RoomId   int    `json:"id"`       // 房间id
		Function string `json:"function"` // 功能类型，直播、点播
	}
	DirtyWords struct {
		OpType int      `json:"op_type"` // 0 删除 1增加
		Words  []string `json:"words"`   // 词语
	}
	BanUserChatReq struct {
		UserId   int    `json:"user_id"`
		BanType  int    `json:"ban_type"` //这里指的是禁言或解禁
		NickName string `json:"nickname"`
		TBan     int64  `json:"t_ban"`
		RoomId   int    `json:"room_id"` //带room id过来
		Reason   string `json:"reason"`  //禁言原因
		BanMsg   string `json:"ban_msg"` //引发禁言的那条内容
	}
	ChangeAdminReq struct {
		UserId int   `json:"user_id"`
		Role   int32 `json:"role"`
	}
	GoodByeMessage struct {
		Id       int    `json:"id"`       //
		Function string `json:"function"` // 功能类型，直播、点播
		Uid      int    `json:"uid"`      // 被踢用户的id
		Message  string `json:"message"`  //
	}
	QuizForwardMessage struct {
		RoomId   int    `json:"id"`       // 房间id
		Function string `json:"function"` // 功能类型，直播、点播
		Uid      int    `json:"uid"`      // 用户id
		Content  string `json:"message"`  // 问题内容
	}
	RoomQuizMessage struct {
		SentMessageStruct
		Content string `json:"content"`
	}
)

const (
	// 賽事直播相關
	TextConst        = "text"
	TextCountConst   = "text_count"
	MatchLiveConst   = "match_live"
	ScoreConst       = "score"
	StatusConst      = "stats"
	LineupConst      = "lineup"
	TeamRecordConst  = "record"
	BasketBallConst  = "basketball"
	FootballConst    = "football"
	IndexConst       = "index"
	TextSaveRdsCount = 100

	// nats subscript
	FootballTextLive     = "text_live.football"
	FootballScoreLive    = "score_live.football"
	FootballStatsLive    = "stats_live.football"
	FootballLineupLive   = "lineup_live.football"
	BasketballTextLive   = "text_live.basketball"
	BasketballScoreLive  = "score_live.basketball"
	BasketballStatsLive  = "stats_live.basketball"
	BasketballRecordLive = "players.basketball"
	FootballIndexLive    = "odds_live.football"
	BasketballIndexLive  = "odds_live.basketball"
	DirtyWordsChannel    = "pubConf.DirtyWords"

	// 直播間相關
	LiveStreamConst  = "live_stream"
	QuizConst        = "quiz"
	QuizPromptConst  = "quiz_prompt"
	GoodByeConst     = "good_bye"
	ClearChatChannel = "JetStream.ClearChatSubject"

	BanUserChannel                 = "JetStream.BanUserChannel"
	AdminUpdaterChannel            = "pubConf.AdminUpdate"
	HeatCalculatorChannel          = "pubConf.HeatCalculator"
	LoginBroadcastChannel          = "Broadcast.Login"
	AnonymousLoginBroadcastChannel = "Broadcast.AnonymousLogin"

	AdminLogChannel = "Broadcast.AdminLog"
)
